<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<jsp:include page="check_logstate.jsp"></jsp:include>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!doctype html>
<html lang="zh_CN">
<head>
<base href="<%=basePath%>" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>欢迎使用大学生实训平台</title>
<link rel="stylesheet" href="css/font.css">
<link rel="stylesheet" href="css/xadmin.css">
<script src="lib/layui/layui.js" charset="utf-8"></script>
<script type="text/javascript" src="lib/layui/controller.js"></script>
</head>
<body>
	<div class="x-nav">
		<a class="layui-btn layui-btn-small" style="line-height: 1.6em; margin-top: 3px; float: right"
			onclick="location.reload()" title="刷新"> <i class="layui-icon layui-icon-refresh" style="line-height: 30px"></i>
		</a>
	</div>
	<div class="layui-fluid">
		<div class="layui-row layui-col-space15">
			<div class="layui-col-md12">
				<div class="layui-card">
					<div class="layui-card-body layui-table-body layui-table-main">
						<table class="layui-table layui-form">
							<thead>
								<tr>
									<th style="text-align: center">发布企业</th>
									<th style="text-align: center">岗位名称</th>
									<th style="text-align: center">岗位类型</th>
									<th style="text-align: center">岗位薪资</th>
									<th style="text-align: center">开始日期</th>
									<th style="text-align: center">结束日期</th>
									<th style="text-align: center">岗位数量</th>
									<th style="text-align: center">报名数</th>
									<th style="text-align: center">点击数</th>
									<th style="text-align: center">状态</th>
									<th style="text-align: center">操作</th>
								</tr>
							</thead>
							<c:forEach items="${goodsList}" var="goods">
								<tr align="center">
									<td>${goods.companyname}</td>
									<td>${goods.goodsname}</td>
									<td>${goods.catename}</td>
									<td>${goods.salary}</td>
									<td>${goods.thestart}</td>
									<td>${goods.theend}</td>
									<td>${goods.num}</td>
									<td>${goods.asignnum}</td>
									<td>${goods.hits}</td>
									<td>${goods.status}</td>
									<td>
									<c:if test="${goods.status eq '未结束'}">
									<a href="goods/over.action?id=${goods.goodsid}" class="layui-btn layui-btn-mini links_edit">结束</a>
									<a href="goods/getGoodsById.action?id=${goods.goodsid}" class="layui-btn layui-btn-mini links_edit">编辑</a>
									</c:if>
										</td>
								</tr>
							</c:forEach>
						</table>
					</div>
					<div class="layui-card-body ">
						<div class="page">
							<div>${html }</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>
</html>

